<?php if (sizeof($this->comments) > 0) { ?>
<ul class="i_maingxr">
<?php foreach ($this->comments AS $key => $val) { ?>
	<li>
    	<p class="i_userTime"><span  class="i_right"><?php if (($val['uid'] == $this->user_id AND !$this->question['lock']) OR $this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator']){ ?><a href="javascript:;" onClick="remove_comment($(this).parent(), '<?php echo $val['question_id'] > 0 ? 'question' : 'answer'; ?>', <?php echo $val['id']; ?>);">删除</a><?php } ?><a href="javascript:;" onClick="$.Q.reply(this,'<?php echo $val['user_name']; ?>', 'save_<?php echo $val['question_id'] > 0 ? 'question' : 'answer'; ?>_comment_<?php echo $val['question_id'] > 0 ? $val['question_id'] : $val['answer_id']; ?>');">回复</a></span><a href="people/<?php echo $val['url_token']; ?>" data-message="&uid=<?php echo $val['uid']; ?>&card=user" class="user_msg"><?php echo $val['user_name']; ?></a> • <?php echo date_friendly($val['time']); ?></p>
        <span class="i_ctxt"><?php echo nl2br($val['message']); ?></span>
        <a href="people/<?php echo $val['url_token']; ?>" class="s_user i_alpHover"><img src="<?php echo get_avatar_url($val['uid'], 'min'); ?>" title="<?php echo $val['user_name']; ?>" alt="<?php echo $val['user_name']; ?>" data-message="&uid=<?php echo $val['uid']; ?>&card=user" class="user_msg"/></a>
    </li>
<?php } ?>
</ul>
<?php } ?>